//
//  ViewController.m
//  MBProgressHUD-HYL
//
//  Created by acorn-net01 on 2017/5/17.
//  Copyright © 2017年 HYL. All rights reserved.
//

#import "ViewController.h"
#import "MBProgressHUD+HYL.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    self.view.backgroundColor=[UIColor redColor];
   
//    [MBProgressHUD showSuccess:@"text" toView:self.view];
//    NSLog(@"%@",[UIApplication sharedApplication].keyWindow);
//    [MBProgressHUD showError:@"错误提醒" toView:self.view];
 
}


//
-(void)viewDidAppear:(BOOL)animated{
    [super viewDidAppear:animated];
    [MBProgressHUD showMessage:@"正在登录中。。。"];
    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
        [MBProgressHUD hideHUD];
    });
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
